<template>
  <div>
    user
    {{ $route.params.name }}
  </div>
</template>

<script>
export default {
  created() {
    console.log("user ");
    // 请求后端接口
  },
  beforeRouteUpdate() {
    console.log("before router update");
  },
  watch: {
    $route() {
      console.log(this.$route);
    },
  },
};
</script>

<style></style>
